babl: use hashtable approach in double reference
authorØyvind Kolås <pippin@gimp.org>
Fri, 18 May 2018 09:02:04 +0000 (11:02 +0200)
committerØyvind Kolås <pippin@gimp.org>
Fri, 18 May 2018 09:05:34 +0000 (11:05 +0200)
commite3dda81e47376665c0034fe0bcd45e35601470df
tree41064c20e54830e1f3ec64630c2c99b6d5615e99
parentbbf5dda8b12a8fa01f434a6b9cc362af9a4b9383
babl: use hashtable approach in double reference

Strictly speaking we should be doing the reference using
conversions to R'G'B'A double and using the distance metric
there; possibly getting a slight difference in result at
comparison ties.

In use GEGL ends up using both the really fast 8bit code paths
and the quite fast floating point code paths that use 8bit
hashtables for the lookup of conversion.

Progress on bug #787237 missing fast-paths.
babl/babl-palette.c